package jiinn.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/pension/*")
public class PensionController {
	
	@RequestMapping("/regional")
	public String regional(Model model) throws Exception {
		model.addAttribute("region", "active");
		return "pension/regional";
	}
	
	@RequestMapping("/modal/introduce")
	public String introduce(@RequestParam String pno, @RequestParam String id, Model model) throws Exception {
		model.addAttribute(id, "active");
		return "pension/modal/introduce";
	}
	@RequestMapping("/modal/roominfo")
	public String roominfo(@RequestParam String pno) throws Exception {
		return "pension/modal/roominfo";
	}
	@RequestMapping("/modal/area")
	public String area(@RequestParam String pno) throws Exception {
		return "pension/modal/area";
	}
	@RequestMapping("/modal/penqna")
	public String penqna(@RequestParam String pno) throws Exception {
		return "pension/modal/penqna";
	}
	@RequestMapping("/modal/penreview")
	public String penreview(@RequestParam String pno) throws Exception {
		return "pension/modal/penreview";
	}
	@RequestMapping("/modal/reserv")
	public String reservinfo(@RequestParam String pno) throws Exception {
		return "pension/modal/reserv";
	}
	@RequestMapping("/modal/zzim")
	public String zzim(@RequestParam String pno) throws Exception {
		return "pension/modal/zzim";
	}

}
